home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2007 March
/
PCWorld_2007-03_cd.bin
/
komunikace
/
acehtml
/
acehtmlfreeware.exe
/
scriptdef
/
Fading Ticker Tape.sd
< prev
next >
Wrap
INI File
|
2006-09-13
|
3KB
|
165 lines
[SUBJECT]
Description=Fading Ticker Tape Script
ImageIndex=-1
Folder=Text Effects
[HEAD_TEXT]
;<style>
;<!--
;
;#tickertape{
;position:relative;
;
;layer-background-color:black;
;width:400px;
;height:12px;
;}
;
;#subtickertape{
;background-color:black;
;position:absolute;
;border: 1px solid black;
;width:400px;
;height:12px;
;
;}
;
;.subtickertapefont{
;font:bold 12px Verdana;
;text-decoration:none;
;color:white;
;}
;
;.subtickertapefont a{
;color:white;
;text-decoration:none;
;}
;-->
;</style>
[BODY_TAG]
;onload="if (document.all||document.layers) {regenerate2();update()}"
[BODY_TEXT]
;<div id="tickertape">
;<div id="subtickertape" class="subtickertapefont">Initializing...</div>
;</div>
;
;<script language="JavaScript1.2">
;
;/*
;Fading Ticker Tape Script-
;⌐ Dynamic Drive (www.dynamicdrive.com)
;Fading background color component by Dave Methvin, Windows Magazine
;For full source code, installation instructions,
;100's more DHTML scripts, and Terms Of
;Use, visit dynamicdrive.com
;*/
;//default speed is 4.5 seconds, Change that as desired
;var speed=`speed`;
;
;var news=new Array();
;news[0]="<a href='`url0`'>`caption0`</a>";
;news[1]="<a href='`url1`'>`caption1`</a>";
;news[2]="<a href='`url2`'>`caption2`</a>";
;//expand or shorten this list of messages as desired
;
;i=0;
;if (document.all)
;tickerobject=document.all.subtickertape.style;
;else
;tickerobject=document.tickertape.document;
;function regenerate(){
;window.location.reload();
;}
;function regenerate2(){
;if (document.layers)
;setTimeout("window.onresize=regenerate",450);
;}
;
;function update(){
;BgFade(0xff,0xff,0xff, 0x00,0x00,0x00,10);
;if (document.layers){
;document.tickertape.document.subtickertape.document.write('<span class="subtickertapefont">'+news[i]+'</span>');
;document.tickertape.document.subtickertape.document.close();
;}
;else
;document.all.subtickertape.innerHTML=news[i];
;
;if (i<news.length-1)
;i++;
;else
;i=0;
;setTimeout("update()",speed);
;}
;
;function BgFade(red1, grn1, blu1, red2,
;grn2, blu2, steps) {
;sred = red1; sgrn = grn1; sblu = blu1;
;ered = red2; egrn = grn2; eblu = blu2;
;inc = steps;
;step = 0;
;RunFader();
;}
;function RunFader() {
;var epct = step/inc;
;var spct = 1 - epct;
;if (document.layers)
;tickerobject.bgColor =
;Math.floor(sred * spct + ered *
;epct)*256*256 +
;Math.floor(sgrn * spct + egrn * epct)*256 +
;Math.floor(sblu * spct + eblu * epct);
;else
;tickerobject.backgroundColor=
;Math.floor(sred * spct + ered *
;epct)*256*256 +
;Math.floor(sgrn * spct + egrn * epct)*256 +
;Math.floor(sblu * spct + eblu * epct);
;if ( step < inc ) {
;setTimeout('RunFader()',50);
;}
;step++;
;}
;
;</script>
[`speed`]
Kind=N
Value=4500
[`url0`]
Kind=U
Value=http://dynamicdrive.com
[`url1`]
Kind=U
Value=http://wsabstract.com
[`url2`]
Kind=U
Value=http://download.com
[`caption0`]
Kind=S
Value=Click here to go to Dynamic Drive's front page
[`caption1`]
Kind=S
Value=Visit Website Abstraction for free JavaScripts!
[`caption2`]
Kind=S
Value=Looking for software downloads? Click here.